package com.esper.simple.model;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created by yanghonglei on 2016/12/6.
 */
public class Person implements Serializable {

    private static final long serialVersionUID = -7516666519868486825L;
    String                    name;
    int                       age;
    List<Child>               children;
    Map<String, Integer>      phones;
    Address                   address;

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public List<Child> getChildren() {
        return children;
    }

    public Child getChildren(int index) {
        return children.get(index);
    }

    public int getPhones(String name) {
        return phones.get(name);
    }

    public Map<String, Integer> getPhones() {
        return phones;
    }

    public Address getAddress() {
        return address;
    }
}
